package com.neutech.solar.entity;

import com.neutech.solar.util.ImageUtil;

import java.awt.*;

public class Background extends AbstractSolarSystemObject{

    public Background(){
        this.x = 0;
        this.y = 0;
        this.img = ImageUtil.getImage("bg.jpg");
    }
    public Background(String imageName){
        this();
        this.img = ImageUtil.getImage(imageName);
    }
    public Background(int x,int y ,String imgName){
        this.x = x;
        this.y = y;
        this.img = ImageUtil.getImage(imgName);
    }



    @Override
    public void draw(Graphics g) {
        g.drawImage(img,x,y,null);
    }

    @Override
    public void move() {

    }
}
